package com.mvc.mapper;

import com.mvc.entity.HomeTuijian;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName TuijianMapper
 * @Description TODO
 * @Author Roc
 * @Date 2021/11/28 13:37
 * @Version 1.0
 **/
public interface TuijianMapper {
    /**
     * @MethodName 分页查询
     * @Description TODO
     * @Param startRow
     * @Param limit
     * @Return java.util.List<com.mvc.entity.HomeTuijian>
     * @Author Roc
     * @Date 2021/11/28 17:37
     **/
    List<HomeTuijian> pageSearch(@Param(value = "id") Integer id,
                                 @Param(value = "name") String name,
                                 @Param(value = "startRow") Integer startRow,
                                 @Param(value = "limit") Integer limit);

    /**
     * @MethodName 添加
     * @Description TODO
     * @Param homeTuijian
     * @Return java.lang.Integer
     * @Author Roc
     * @Date 2021/11/28 17:37
     **/

    Integer tjinsert(HomeTuijian homeTuijian);
    /**
     * @MethodName 修改
     * @Description TODO
     * @Param homeTuijian
     * @Return java.lang.Integer
     * @Author Roc
     * @Date 2021/11/28 17:37
     **/

    Integer tjupdate(HomeTuijian homeTuijian);
    /**
     * @MethodName 删除
     * @Description TODO
     * @Param id
     * @Return java.lang.Integer
     * @Author Roc
     * @Date 2021/11/28 17:37
     **/
    Integer tjdel(@Param(value = "id") Integer id);

    /**
     * @MethodName 商品状态
     * @Description TODO 
 * @Param state
 * @Param id 
     * @Return java.lang.Integer
     * @Author Roc
     * @Date 2021/12/2 14:34
     **/
    Integer sjxjupdate(@Param(value = "state") Integer state,
                       @Param(value = "id") Integer id);

}
